<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>

 <div class="table-scroll">
        <table id="_list_table" class="table-form table-bordered table-hover table-ellipsis table-fixed">
        	<thead>
            	<tr>
            		<th width="5%"><input type="checkbox" name="checkboxall" id="fullCheck" onclick="listTableCheckAll(this)" /></th>
                	<th width="5%">序号</th>
                	<th>权限名称</th>
					<th>权限类型</th>
					<th>权限描述</th>
					<th>权限值</th>
					<th>所属菜单</th>
					<th>所属应用</th>
					
                </tr>
            </thead>
            <tbody>
                <c:if test="${ empty pageBean.data}">
                    <td colspan="8">无符合条件数据</td>
                </c:if>
                <c:if test="${not empty pageBean.data}">
                    <c:forEach items="${pageBean.data}" var="p" varStatus="seq">
                        <tr>
                        	<td><input type="checkbox" name="checkboxOne" id="oneCheck" value="${p.id }"/></td>
                        	<td>${seq.count+pageBean.first}</td>
                        	<td class="text-left" title="${p.name }">${p.name}</td>
                        	<td><c:out value="${'0' eq p.type ?'菜单权限':'功能权限' }" /></td>
                        	<td class="text-left" title="${p.description }">${p.description }</td>
                        	<td class="text-left" title="${p.pvalue}">${p.pvalue}</td>
                        	<td class="text-left" title="${p.menuName }">${p.menuName }</td>
                        	<td class="text-left" title="${p.appName }">${p.appName }</td>
                         </tr>
                      </c:forEach>    
                 </c:if>                  
               </tbody>
             </table>
   	</div>

     <div class="pages">
           <jsp:include page="../common/pager.jsp"></jsp:include>    
     </div>
    <script type="text/javascript">
    currentPageNo = parseInt('${pageBean.currentPage}');
    currentPageSize = parseInt('${pageBean.pageSize }');
    totalPageCount = parseInt('${pageBean.totalPage}');
    </script>